package com.shoux.api.web.controller;


import com.shoux.api.web.entity.MsgEntity;
import com.shoux.api.web.entity.query.QueryForm;
import com.shoux.api.web.service.DicFieldService;
import com.shoux.api.web.service.DicFieldValuesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 系统字典属性信息表 前端控制器
 * </p>
 *
 * @author chris
 * @since 2022-03-17
 */
@Api(tags = "系统字典接口")
@RestController
@RequestMapping("/dicFieldValues")
public class DicFieldValuesController {
    @Resource
    private DicFieldValuesService dicFieldService;

    @ApiOperation("查询字典")
    @PostMapping("/dictGrid")
    public MsgEntity dictGrid(@RequestBody QueryForm form){
        return dicFieldService.dictGrid(form);
    }

}
